package cn.hom1.model.enums;

/**
 * 状态吗返回
 *
 * @author iksen
 * @date 2019-01-15 15:51
 */
public enum ResponseStatus {
  SUCCESS(200,"操作成功"),
  FORBIDDEN(403, "您没有权限访问！"),
  NOT_FOUND(404, "资源不存在！"),
  ERROR(500, "服务器内部错误！");

  private int code;
  private String message;

  ResponseStatus(int code, String message) {
    this.code = code;
    this.message = message;
  }
  public Integer getCode() {
    return code;
  }

  public String getMessage() {
    return message;
  }
}
